package com.ecloud.gardensterminal.controller.vo;

import com.ecloud.gardensterminal.domain.GardensArea;
import com.ecloud.gardensterminal.domain.GardensDevice;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author Squbi
 */
@Data
@NoArgsConstructor
public class GardensAreaDeviceVo {
    private int areaId;
    private String areaName;
    private String areaDescription;
    private List<GardensDevice> devices;

    public GardensAreaDeviceVo(GardensArea area, List<GardensDevice> devices) {
        this.areaId = area.getAreaId();
        this.areaName = area.getAreaName();
        this.areaDescription = area.getAreaDescription();
        this.devices = devices;
    }
}
